-- GENERATED SPELL FOR [Torseg the Exiled] --


function spell0_29350(pUnit, Event) --@Backbreaker,n/a--
pUnit:FullCastSpellOnTarget(53437,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29350', 4343, 1)
end

function spell1_29350(pUnit, Event) --@War Stomp,Self--
pUnit:FullCastSpellOnTarget(33707,pUnit)
pUnit:RegisterEvent('Sorts_29350', 652, 1)
end

function Sorts_29350(pUnit, Event)
local choix_sorts_29350 = math.random(0, 1)
if choix_sorts_29350 == 0 then
pUnit:RegisterEvent('spell0_29350', 1, 1)
end
if choix_sorts_29350 == 1 then
pUnit:RegisterEvent('spell1_29350', 1, 1)
end
end

function mob29350_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29350', math.random(1500, 3000), 1)
end

function mob29350_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29350_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29350_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29350, 1, 'mob29350_Action')
RegisterUnitEvent(29350, 2, 'mob29350_Leave')
RegisterUnitEvent(29350, 3, 'mob29350_Kill')
RegisterUnitEvent(29350, 4, 'mob29350_Die')
